package com.huaxin.common.Entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/9/22.
 */
public class Org implements Parcelable {

    String orgCode;
    String orgName;
    double longitude;
    double latitude;
    String region; //地区
    String address; //地址
    String stationCode;

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.orgCode);
        dest.writeString(this.orgName);
        dest.writeDouble(this.longitude);
        dest.writeDouble(this.latitude);
        dest.writeString(this.region);
        dest.writeString(this.address);
        dest.writeString(this.stationCode);
    }

    public Org() {
    }

    protected Org(Parcel in) {
        this.orgCode = in.readString();
        this.orgName = in.readString();
        this.longitude = in.readDouble();
        this.latitude = in.readDouble();
        this.region = in.readString();
        this.address = in.readString();
        this.stationCode = in.readString();
    }

    public static final Creator<Org> CREATOR = new Creator<Org>() {
        @Override
        public Org createFromParcel(Parcel source) {
            return new Org(source);
        }

        @Override
        public Org[] newArray(int size) {
            return new Org[size];
        }
    };

    @Override
    public String toString() {
        return "Org{" +
                "orgCode='" + orgCode + '\'' +
                ", orgName='" + orgName + '\'' +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                ", region='" + region + '\'' +
                ", address='" + address + '\'' +
                ", stationCode='" + stationCode + '\'' +
                '}';
    }
}
